package cn.wolfcode.p2p.business.mapper;

import cn.wolfcode.p2p.base.qo.QueryObject;
import cn.wolfcode.p2p.business.domain.PaymentSchedule;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface PaymentScheduleMapper {

    int insert(PaymentSchedule record);

    PaymentSchedule selectByPrimaryKey(Long id);

    List<PaymentSchedule> queryData(QueryObject qo);

    int updateByPrimaryKey(PaymentSchedule record);

    List<PaymentSchedule> queryByBidRequestId(Long bidRequestId);

    List<PaymentSchedule> queryYesterdayOverduePaymentScheduleList(@Param("date") Date date, @Param("state") int state);
}